package com.walterweimod.auxiliary_attributes.util;

import net.minecraft.world.entity.LivingEntity;

import java.util.Objects;

public class ModLivingEntityUtils {
    private ModLivingEntityUtils(){}

    public static void addAbsorptionAmount(LivingEntity livingEntity, float amount){
        if (Objects.nonNull(livingEntity) && amount > 0.0F){
            livingEntity.setAbsorptionAmount(livingEntity.getAbsorptionAmount() + amount);
        }
    }
}
